import request from '@/utils/request.js';

export default {
    // 获取系统设置
    getSettings() {
        return request({
            url: '/api/system/settings',
            method: 'GET'
        });
    },
    
    // 保存系统设置
    saveSettings(data) {
        return request({
            url: '/api/system/settings',
            method: 'POST',
            data
        });
    },
    
    // 测试邮件设置
    testEmailSettings(data) {
        return request({
            url: '/api/system/settings/email/test',
            method: 'POST',
            data
        });
    },
    
    // 上传系统Logo
    uploadLogo(data) {
        return request({
            url: '/api/system/settings/logo',
            method: 'POST',
            headers: {
                'Content-Type': 'multipart/form-data'
            },
            data
        });
    }
}; 